package com.hl233.common.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author 张振强15065206763
 * @create 2024-09-12
 */
@FeignClient(value = "hl233-system")
public interface SystemClient {

    @GetMapping("/system/add")
    public String addBackData(@RequestBody Map info);

    @GetMapping("/system/get")
    public Map getById(@RequestParam(value = "id") Integer id);


    @GetMapping("/system/getById1")
    public String getById1(@RequestParam(value = "id") Integer id);

    @GetMapping("/system/getById2/{id}")
    public String getById2(@PathVariable("id") Integer id);

}